import request from "@/utils/request"

export const getEnergyUsersApi = (params = {}) => {
    return request.get('/energy_users/', { params })
}

export const createEnergyUsersApi = (data) => {
    return request.post('/energy_users/', data)
}

export const updateEnergyUsersApi = (data) => {
    return request.patch(`/energy_users/`, data)
}

export const deleteEnergyUsersApi = (data) => {
    return request.delete(`/energy_users/`, {
        data
    })
}